package com.laf.manage.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.laf.manage.enums.VerifyStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 内容表
 * </p>
 *
 * @author zian
 * @since 2024-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "tb_dynamic" , autoResultMap = true)
@ApiModel(value="Dynamic对象", description="内容表")
public class Dynamic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty("图片地址集合")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> imgUrls;

    @ApiModelProperty(value = "访问量")
    private Integer hits;

    @ApiModelProperty(value = "审核状态 0 待审核 1 已通过 2 驳回")
    private VerifyStatusEnum verifyStatus;

    @ApiModelProperty(value = "创建用户的id")
    private Long createUserId;

    @ApiModelProperty(value = "添加者用户名")
    private String createBy;

    @ApiModelProperty(value = "修改人用户名")
    private String updateBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;


}
